package com.model.dto.sys.elastic;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class ElasticDto {
    @ApiModelProperty(value = "page必须是正整数")
    @Range(min = 0, message = "page必须是正整数")
    private int page = 1;

    @ApiModelProperty(value = "pageSize必须是正整数")
    @Range(min = 0, message = "pageSize必须是正整数")
    private int pageSize = 10;

    @ApiModelProperty(value = "开始日期")
    private long startTime;
    @ApiModelProperty(value = "结束日期")
    private long endTime;

    @ApiModelProperty(value = "索引")
    private String index;

    @ApiModelProperty(value = "设备号")
    private String dtu;

}
